﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ATEDiagnoser
{
    public partial class PictureShow : Form
    {
        public PictureShow(string path)
        {
            InitializeComponent();
            try
            {
                pictureBox1.Image = Image.FromFile(path);
            }
            catch (Exception)
            {
                MessageBox.Show("图片路径不正确", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1);
            }
            
        }

        private void PictureShow_Load(object sender, EventArgs e)
        {

        }
    }
}
